// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import '@/common/css/reset.css' // 基础样式
import 'vue-ydui/dist/ydui.px.css'
import './assets/icon/iconfont.css'
/* eslint-disable */import animate from 'animate.css'/* eslint-disable */
import YDUI from 'vue-ydui' /* 相当于import YDUI from 'vue-ydui/ydui.rem.js' */
import axios from 'axios' // 引入axios
import qs from 'qs'
import getUrl from '../static/js/getUrl'
import confusion from '../static/js/confusion'
import FastClick from 'fastclick'
import { getToken } from '../static/js/auth'
FastClick.attach(document.body)
Vue.prototype.getUrl = getUrl
Vue.prototype.confusion = confusion
Vue.prototype.$axios = axios
Vue.use(qs)
Vue.use(YDUI)
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  data: {
    eventHub: new Vue()
  }
})
